class Backend::DashboardController < ApplicationController
  append_before_filter :check_admin_priviledge

  def index #for /admin route
     #admin_log('logging from '+ __FILE__)
     #display dashboard logs
     @logs = DashboardLog.order("createdat desc").page(params[:page]).per(8)
     @statistic =  {
         :user_count => Student.all.count(),
         :document_count => LibraryDocument.all.count()
     }
  end
end
